import {request} from "@/network/request";

export function getAllCategoryGoods(type: string = "sales", category_id?: number, page: number = 1, typeValue: number = 1, title?: string) {
    return request({
        url: `/api/goods?page=${page}&${type}=${typeValue}${title ? "&title=" + title : ""}${category_id ? "&category_id=" + category_id : ""}`
    });
}


export function getCategory() {
    return request({
        url: "/api/goods"
    });
}